@(f: Form[Widget.TextEntry], activities: List[models.aaa.Asset] = null, learningObjects: List[models.aaa.Asset] = null, users: List[models.aaa.Asset] = null, actor: models.aaa.Asset, pid: String) 
@import helper._ 

<h1>Suggestions</h1>
@if(activities.isEmpty() && learningObjects.isEmpty() && users.isEmpty()) {
    No recommendation
} else {
        <h3>Spaces</h3>
        <ul>
        @if(activities.size() != 0) {
                @for(d <- activities) {
                <li><a href="@routes.Asset.redirect(pid, d.getId()).absoluteURL()">@d.getName()</a>
                </li> 
                }
        } else {
            No activity
        }
        </ul>
        <h3>Learning Objects</h3>
        <ul>
        @if(learningObjects.size() != 0) {
                @for(d <- learningObjects) {
                <li><a href="@routes.Asset.redirect(pid, d.getId()).absoluteURL()">@d.getName()</a>
                </li> 
                }
        } else {
            No learning object
        }
        </ul>
        <h3>Users</h3>
        <ul>
        @if(users.size() != 0) {
                @for(d <- users) {
                <li><a href="@routes.Asset.redirect(pid, d.getId()).absoluteURL()">@d.getName()</a>
                </li> 
                }
        } else {
            No user
        }
        </ul> 
}